# Compiler
CXX = g++

# Compiler flags
CXXFLAGS = -Wall

# Targets
TARGETS = writer reader

# Default target
all: $(TARGETS)

# Compile writer
writer: writer.cpp
	$(CXX) $(CXXFLAGS) -o writer writer.cpp

# Compile reader
reader: reader.cpp
	$(CXX) $(CXXFLAGS) -o reader reader.cpp

# Clean up build files
clean:
	rm -f $(TARGETS) ./myfifo
